﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Lib.Paging;
using SDT.Model;
using System.Web.UI.WebControls;
using System.Web.Mvc;

namespace SDT.Admin.ViewModels
{
    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 28/06/2011
    /// </summary>
    public class VideoViewModels
    {
        public IPagedList<Video> Videos;
        public TreeNodeCollection Categories = new TreeNodeCollection();
        public int CurrentCat;
        public int? CurrentPubStatus;
        public string Keyword;
        public List<SelectListItem> ListStatusPub
        {
            get
            {
                var data = new List<SelectListItem>();
                for (int i = 0; i <= 1; i++)
                {
                    var list = new SelectListItem()
                    {
                        Value = i.ToString(),
                        Text = i == 0 ? "Không" : "Có"

                    };
                    data.Add(list);
                }
                return data;
            }
        }

        public string ImageRootUrl;
    }

    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 28/06/2011
    /// </summary>
    public class VideoInputModels
    {
        public TreeNodeCollection Categories = new TreeNodeCollection();
        public Video Video = new Video();
        public string CatName = string.Empty;
        public string ImageRootUrl;
        public string VideoUrl;
        // Added by Vietlv (11/08/2011) CurrentListTag and Projects
        public string CurrentListTag { get; set; }
        public List<Company> Companies { get; set; }
        public int CurrentCompany { get; set; }
        public List<Tag> Tags { get; set; }
        public List<int> ListTagID { get; set; }
        public string CompanyName { get; set; }
    }
}
